package com.gps.web.comm.interceptor;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

@SuppressWarnings("serial")
public class ExceptionInterceptor extends AbstractInterceptor {

	static Logger logger = Logger.getRootLogger();
	
	@Override
	public String intercept(ActionInvocation actionInvocation) throws Exception {
		try {
			actionInvocation.invoke();
		} catch(Exception e)
		{
			logger.error("------Exception-----",e);
			throw e;
		}
		return null;
	}

}
